//
//  DetailView.m
//  DouBan
//
//  Created by lanou3g on 15/8/8.
//  Copyright (c) 2015年 xuzheng. All rights reserved.
//

#import "DetailView.h"

@implementation DetailView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (id)initWithFrame:(CGRect)frame{
    self=[super initWithFrame:frame];
    if (self) {
        [self setView];
    }
    return self;
}
- (void)setView{
    self.backgroundColor=[UIColor greenColor];
    self.poster=[[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 100, 150)];
    self.poster.backgroundColor=[UIColor cyanColor];
   [self addSubview:self.poster];
    
    
    self.rating=[[UILabel alloc]initWithFrame:CGRectMake(120, 10, 50, 25)];
    self.rating.text=@"评分";
    self.rating.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.rating];
   
    
    self.release_data=[[UILabel alloc]initWithFrame:CGRectMake(120, 40, 50, 25)];
    self.release_data.text=@"上映时间";
    self.release_data.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.release_data];
    
    
    self.runtime=[[UILabel alloc]initWithFrame:CGRectMake(120, 80, 50, 25)];
    self.runtime.backgroundColor=[UIColor cyanColor];
    [self addSubview: self.runtime];
    
    
    self.genres=[[UILabel alloc]initWithFrame:CGRectMake(120, 110, 50, 25)];
    self.genres.backgroundColor=[UIColor grayColor];
    [self addSubview: self.genres];
    
    
    self.country=[[UILabel alloc]initWithFrame:CGRectMake(120, 140, 50, 25)];
    self.country.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.country];
    
    
    self.actors=[[UILabel alloc]initWithFrame:CGRectMake(10, 190, 50, 25)];
    self.actors.text=@"制作人";
    self.actors.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.actors];
    
    
    self.plot_simple=[[UILabel alloc]initWithFrame:CGRectMake(10, 220, 300, 50)];
    self.plot_simple.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.plot_simple];
    
    self.title=[[UILabel alloc]initWithFrame:CGRectMake(10, 280, 320, 150)];
    self.title.text=@"电影情节";
    self.title.backgroundColor=[UIColor cyanColor];
    [self addSubview:self.title];
    
}
@end
